/**
 * 首页相关类型定义
 */

// 轮播图数据
export interface Banner {
  id: number;
  image: string;
  type: 'merchant' | 'food';
  targetId: number;
  productId?: number;
}

// 美食数据
export interface Food {
  id: number;
  name: string;
  image: string;
  price: number;
  sales: number;
  merchantId: number;
  productId: number;
}

// 商家数据
export interface Merchant {
  id: number;
  name: string;
  logo: string;
  coverImage: string;
  rating: number;
  sales: number;
  distance: number;
  minPrice: number;
  deliveryFee: number;
  tags: string[];
}

// 优惠活动数据
export interface Promotion {
  id: number;
  image: string;
  tag: string;
  title: string;
  desc: string;
  endTime: string;
  merchantId: number;
}

// 位置信息
export interface LocationInfo {
  province: string;
  city: string;
  district: string;
  latitude: number;
  longitude: number;
  fullAddress: string;
}